﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJP.Logging
{
    [Serializable]
    public class StreamLoggerFactory : AbstractLoggerFactory, ILoggerFactory
    {
        public override ILogger Create(string name)
        {
            return new StreamLogger(name);
        }

        public override ILogger Create(string name, LogLevel level)
        {
            return new StreamLogger(name)
            {
                Level = level
            };
        }
    }
}
